#include <iostream>
#include <sstream>
#include <string>
#include <clocale>

using namespace std;

int main(int argc, char *argv[]) {

	setlocale(LC_ALL, "swedish");

	int plus, summa = 0;
	string stringvalue;

	for (int i = 0; i < argc; i++) {  

		if (argc > 1) {
		
			stringvalue = argv[i];
			istringstream iss (stringvalue);
			iss >> plus;

			for (int i = 0; i < plus; i++) {
				summa += i;
			

			}
		}
	}
	cout << "Summa: " << summa << endl;

	system("PAUSE");
	return 0;
}